﻿<%@ Page Title="" Language="C#" MasterPageFile="~/shrh.Master" AutoEventWireup="true"
    CodeBehind="ProductSupCategory.aspx.cs" Inherits="WebApp.Product.ProductSupCategory" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="fenlei">
        <div class="fl_photo">
            <ul>
                <asp:Repeater ID="rptSupCategory" runat="server">
                    <ItemTemplate>
                        <li><a href="/Product/ProductTopCategory.aspx?CID=<%# Eval("CategoryId")%>">
                            <asp:Image runat="server" ID="imagePicture" ImageUrl='<%#Eval("PictureUrl") %>' /></a></li>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <li><a href="/Product/ProductTopCategory.aspx?CID=<%# Eval("CategoryId")%>">
                            <asp:Image runat="server" ID="imagePicture" ImageUrl='<%#Eval("PictureUrl") %>' /></a></li>
                    </AlternatingItemTemplate>
                    <SeparatorTemplate>
<%--                        <li>
                            <asp:Image ID="Image1" ImageUrl="~/img/line2.jpg" runat="server" /></li>--%>
                    </SeparatorTemplate>
                </asp:Repeater>
            </ul>
        </div>
        <asp:ListView ID="ListView1" runat="server" GroupItemCount="2" OnItemDataBound="ListView1_ItemDataBound">
            <GroupTemplate>
                <div class="fl_text">
                    <asp:PlaceHolder runat="server" ID="itemPlaceholder" />
                </div>
            </GroupTemplate>
            <LayoutTemplate>
                <asp:PlaceHolder ID="groupPlaceholder" runat="server" />
            </LayoutTemplate>
            <ItemTemplate>
                <div class="fl_texta">
                    <div class="fltex_bt">
                        <a href="/Product/ProductTopCategory.aspx?CID=<%# Eval("CategoryId")%>">
                            <%#Eval("Name") %></a></div>
                    <div class="fltex_btline">
                        <asp:Image ID="Image2" ImageUrl="~/image/fenlei_line.gif" runat="server" />
                    </div>
                    <div class="fltex_nr">
                        <asp:HiddenField ID="hfCagegoryId" runat="server" Value='<%# Eval("CategoryId")%>' />
                        <asp:Repeater ID="RptCategory" runat="server" OnItemDataBound="RptCategory_ItemDataBound">
                            <ItemTemplate>
                                <dl>
                                    <dt><a href="/Product/ProductCategory.aspx?CID=<%# Eval("CategoryId")%>">
                                        <%#Eval("Name") %></a></dt>
                                    <dd>
                                        <asp:HiddenField ID="hfCagegoryId" runat="server" Value='<%# Eval("CategoryId")%>' />
                                        <asp:Repeater ID="RptSubCategory" runat="server" OnItemDataBound="RptSubCategory_ItemDataBound">
                                            <ItemTemplate>
                                                <asp:HiddenField ID="hfSubCategoryId" runat="server" Value='<%# Eval("CategoryId")%>' />
                                                <asp:HyperLink ID="HLSubCategoryId" runat="server"><%#Eval("Name")%></asp:HyperLink>
                                                <%--<a id="A1" href="Product/productclass.aspx?CID=<%# Eval("CategoryId")%>"><%#Eval("Name") %></a>--%>
                                            </ItemTemplate>
                                            <AlternatingItemTemplate>
                                                <asp:HiddenField ID="hfSubCategoryId" runat="server" Value='<%# Eval("CategoryId")%>' />
                                                <asp:HyperLink ID="HLSubCategoryId" runat="server"><%#Eval("Name")%></asp:HyperLink>
                                            </AlternatingItemTemplate>
                                            <SeparatorTemplate>
                                                <span class="fl_nr_line">|</span>
                                            </SeparatorTemplate>
                                        </asp:Repeater>
                                    </dd>
                                </dl>
                            </ItemTemplate>
                            <AlternatingItemTemplate>
                                <dl>
                                    <dt><a href="/Product/ProductCategory.aspx?CID=<%# Eval("CategoryId")%>">
                                        <%#Eval("Name") %></a></dt>
                                    <dd>
                                        <asp:HiddenField ID="hfCagegoryId" runat="server" Value='<%# Eval("CategoryId")%>' />
                                        <asp:Repeater ID="RptSubCategory" runat="server" OnItemDataBound="RptSubCategory_ItemDataBound">
                                            <ItemTemplate>
                                                <asp:HiddenField ID="hfSubCategoryId" runat="server" Value='<%# Eval("CategoryId")%>' />
                                                <asp:HyperLink ID="HLSubCategoryId" runat="server"><%#Eval("Name")%></asp:HyperLink>
                                                <%--<a id="A1" href="Product/productclass.aspx?CID=<%# Eval("CategoryId")%>"><%#Eval("Name") %></a>--%>
                                            </ItemTemplate>
                                            <AlternatingItemTemplate>
                                                <asp:HiddenField ID="hfSubCategoryId" runat="server" Value='<%# Eval("CategoryId")%>' />
                                                <asp:HyperLink ID="HLSubCategoryId" runat="server"><%#Eval("Name")%></asp:HyperLink>
                                            </AlternatingItemTemplate>
                                            <SeparatorTemplate>
                                                <span class="fl_nr_line">|</span>
                                            </SeparatorTemplate>
                                        </asp:Repeater>
                                    </dd>
                                </dl>
                            </AlternatingItemTemplate>
                        </asp:Repeater>
                    </div>
                </div>
            </ItemTemplate>
        </asp:ListView>
    </div>
</asp:Content>
